<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>资产详情</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<%@ include file="/html/custom/header.jsp"%>

		<link type="text/css" href="<%=basePath%>/html/css/gm/asset.css"
			rel="stylesheet" />
		<style>
		.ast-form{border: 0;}
		</style>
		<script type="text/javascript"
			src="<%=basePath%>html/js/swss.asset.search.js"></script>
	</head>

	<body>
		<div id="content">
			<div class="ast">
					<div class="ast-form ">
						<div class="clearfix">
							<div class="panel left">
								<table>
								  <tr>
										<td >
											设备名称
										</td>
										<td>
											<input id="txtAstName" type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.astName"  value="<s:property value="#request.changeAsset.astName" />" />
										</td>
									</tr>
									<tr>
										<td>
											国标类号
											<input name="changeAsset.id" type="hidden" value="<s:property value="#request.changeAsset.id" />" />
										</td>
										<td>
											<input id="gbCode" type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.gbClassNo"  value="<s:property value="#request.changeAsset.gbClassNo.trim()" />"  />

										</td>
									</tr>
									
									<tr>
										<td>数 &nbsp;&nbsp;&nbsp;&nbsp; 量
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt" readonly="readonly"
												name="changeAsset.astCount" value="<s:property value="#request.changeAsset.astCount" />" />
										</td>
									</tr>
									<tr>
										<td>单&nbsp;&nbsp;&nbsp;&nbsp; 价
										</td>
										<td>
											<input id="txtPrice" type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.price" value="<s:property value="#request.changeAsset.price" />" />
										</td>
									</tr>
									<tr>
										<td>
											购置日期
										</td>
										<td>
											<input type="text" id="buyDate"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.buyDate" readonly="readonly"
												value="<s:date name="#request.changeAsset.buyDate"   format="yyyy-MM-dd"  />" />
										</td>
									</tr>
									<tr>
										<td>
											入账时间
										</td>
										<td>
											<input type="text" id="recordDate"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.recordDate" readonly="readonly"
												value="<s:date name="#request.changeAsset.recordDate"   format="yyyy-MM-dd"  />" />
										</td>
									</tr>
									<tr>
										<td>
											品 &nbsp;&nbsp;&nbsp;&nbsp;牌
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.brand" value="<s:property value="#request.changeAsset.brand" />" />
										</td>
									</tr>
									<tr>
										<td>
											型号规格
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.modelNo" value="<s:property value="#request.changeAsset.modelNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											存放地点
										</td>
										<td>
											<input  type="text" readonly="readonly" name="changeAsset.cfddName" value="(<s:property value="#request.changeAsset.cfddNo" />)<s:property value="#request.changeAsset.cfddName" />"
												class="ui-widget-content ui-corner-all txt" />
										</td>
									</tr>
									<tr>
										<td>
											厂 &nbsp;&nbsp;&nbsp;&nbsp;家
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.factoryName" value="<s:property value="#request.changeAsset.factoryName" />" />
										</td>
									</tr>
									<tr>
										<td>
											供 货 商
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.suplierName" value="<s:property value="#request.changeAsset.suplierName" />" />
										</td>
									</tr>
									
									<tr>
										<td>
											折旧方式
										</td>
										<td>
											<select name="changeAsset.zjfs">
												<option value="" >不分</option>
												<s:iterator value="#request.zjfsList">
													<option value="<s:property value="fieldName4" />" <s:if test="changeAsset.zjfs==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>
									<tr>
										<td >
											使用年限
										</td>
										<td>
											<input id="txtUseYear" type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.useYear" value="<s:property value="#request.changeAsset.useYear" />"  />
										</td>
									</tr>
									
								</table>
							</div>
							<div class="panel right">
								<table>
									<tr>
										<td>
											单位名称
										</td>
										<td>
											<input id="deptName" type="text"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.deptNo"  value="(<s:property value="#request.changeAsset.deptNo.trim()" />)<s:property value="#request.changeAsset.dept.deptName" />" />
										</td>
									</tr>
									<tr>
										<td>
											领 用 人
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.collarName"
												value="<s:property value="#request.changeAsset.collarName" />" />
										</td>
									</tr>
									<tr>
										<td>
											经 手 人
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.handName"
												value="<s:property value="#request.changeAsset.handName" />" />
										</td>
									</tr>
									<tr>
										<td>
											单 据 号
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.danJuNo" value="<s:property value="#request.changeAsset.danJuNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											编号范围
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.astNoRange" value="<s:property value="#request.changeAsset.astNoRange" />" />
										</td>
									</tr>
									<tr>
										<td>
											联系电话
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.telephoneNo" value="<s:property value="#request.changeAsset.telephoneNo" />" />
										</td>
									</tr>
									
									<tr>
										<td>
											核销科室
											
										</td>
										<td>
											<select name="changeAsset.finDeptName">
												<option value="" >不分</option>
												<s:iterator value="#request.chargeOffDeptList">
													<option value="<s:property value="fieldName4" />" <s:if test="changeAsset.finDeptName==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>

										</td>
									</tr>
									
									<tr>
										<td>
											现&nbsp;&nbsp;&nbsp;&nbsp; 状
										</td>
										<td>
											<select name="changeAsset.xz">
											<option value="" >不分</option>
												<s:iterator value="#request.nowStatusList"  >
													<option value="<s:property value="fieldName4" />" <s:if test="changeAsset.xz==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>
                                     <tr>
										<td>
											使用方向
										</td>
										<td>
											<select name="changeAsset.syfx">
												<option value="" >不分</option>
												<s:iterator value="#request.useDirList">
													<option value="<s:property value="fieldName4" />" <s:if test="changeAsset.syfx==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>
									<tr>
										<td>
											设备来源
										</td>
										<td>
											<select name="changeAsset.zcly">
											<option value="" >不分</option>
												<s:iterator value="#request.astSourceList">
													
													<option value="<s:property value="fieldName4" />" <s:if test="changeAsset.zcly==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>
									<tr>
										<td>
											计量单位
										</td>
										<td>
											<input id="txtJlUnit" type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.jlUnit" value="<s:property value="#request.changeAsset.jlUnit" />" />
										</td>
									</tr>
									<!-- 
								<tr>
									<td>
										经费来源
									</td>
									<td>
										<select name="">
											<s:iterator value="#request.fundSubList">
												<option value="<s:property value="fieldName4" />">
													<s:property value="txt" />
												</option>
											</s:iterator>
										</select>
									</td>
								</tr>
								 -->
									<tr>
										<td>
											备 &nbsp;&nbsp;&nbsp;&nbsp;注
										</td>
										<td>
											<textarea rows="3" cols="" name="changeAsset.remarks" readonly="readonly"
												class="ui-widget-content ui-corner-all txt" value="<s:property value="#request.changeAsset.remarks" />" ></textarea>
										</td>
									</tr>
								</table>
							</div>
						</div>
						<div class="btns-line">
							<a href="#" id="btnShow" class="btn-show"> </a>
						</div>
						<div id="pnlExpand" class="pnl-btm clearfix">
							<div class="panel left">
								<table>
								     <tr>
										<td>
											发票图片
										</td>
										<td>
											<div class="pic-list clearfix">
												<dl>
													<dt>
														<a target="_blank" href="/swss<s:property value="changeAsset.picUrl2" />"> <img
																src="/swss<s:property value="changeAsset.picUrl2" />" /> </a>
													</dt>
													<dd>
															</dd>
												</dl>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											出  厂  号
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.delyNo"  value="<s:property value="#request.changeAsset.delyNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											出厂日期
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.delyDate" value="<s:date name="#request.changeAsset.delyDate"   format="yyyy-MM-dd"  />"  />
										</td>
									</tr>
									<tr>
										<td>
											保修期限
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.storeDate" value="<s:date name="#request.changeAsset.storeDate"   format="yyyy-MM-dd"  />"  />
										</td>
									</tr>
									<tr>
										<td>
											<s:iterator value="#request.byglList">
												<s:if test="oldField.trim()=='数字字段1'">
													<s:property value="newField.trim()" />
												</s:if>
											</s:iterator>
										</td>
										<td>
											<input type="text" name="changeAsset.numField1" readonly="readonly"
												class="ui-widget-content u-corner-all txt"
												value="<s:property value="#request.changeAsset.numField1" />" />
										</td>
									</tr>
									<tr>
										<td>
											<s:iterator value="#request.byglList">
												<s:if test="oldField.trim()=='数字字段2'">
													<s:property value="newField.trim()" />
												</s:if>
											</s:iterator>
										</td>
										<td>
											<input type="text" name="changeAsset.numField2" readonly="readonly"
												class="ui-widget-content u-corner-all txt"
												value="<s:property value="#request.changeAsset.numField2" />" />
										</td>
									</tr>

								</table>
							</div>
							<div class="panel right">
								<table>
								   <tr>
										<td>
											资产图片
										</td>
										<td id="tdPic" >
											<div id="picList" class="pic-list clearfix">
												<s:generator separator="," val="changeAsset.picUrl1">
													<s:iterator>
														<dl>
															<dt>
																<a target="_blank" href="/swss<s:property />"> <img
																		src="/swss<s:property />" /> </a>
															</dt>
														</dl>
													</s:iterator>
												</s:generator>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											国 别
										</td>
										<td>
											<input id="nationCode" type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt" value="(<s:property value="#request.changeAsset.gbNo" />)<s:property value="#request.changeAsset.gbName" />" />
										</td>
									</tr>
									<tr>
										<td>
											外 币
										</td>
										<td>
											<input type="text" readonly="readonly"
												class="ui-widget-content ui-corner-all txt"
												name="changeAsset.wprice" value="<s:property value="#request.changeAsset.wprice" />" />
										</td>
									</tr>
                                   <tr>
										<td>
											<s:iterator value="#request.byglList">
												<s:if test="oldField.trim()=='字符字段1'">
													<s:property value="newField.trim()" />
												</s:if>
											</s:iterator>
										</td>
										<td>
											<input type="text" name="changeAsset.charField1" readonly="readonly"
												class="ui-widget-content u-corner-all txt"
												value="<s:property value="#request.changeAsset.charField1" />" />
										</td>
									</tr>
									<tr>
										<td>
											<s:iterator value="#request.byglList">
												<s:if test="oldField.trim()=='字符字段2'">
													<s:property value="newField.trim()" />
												</s:if>
											</s:iterator>
										</td>
										<td>
											<input type="text" name="changeAsset.charField2" readonly="readonly"
												class="ui-widget-content u-corner-all txt"
												value="<s:property value="#request.changeAsset.charField2" />" />
										</td>
									</tr>
								</table>

							</div>
						</div>
					</div>
			</div>
		</div>
		<%@ include file="/html/custom/footer.jsp"%>
	</body>
</html>
